import uuid
from .base import UnifiedExecutionGateway, OrderRequest, OrderResponse, OrderStatus
from typing import Dict, List

class BacktestGateway(UnifiedExecutionGateway):
    def __init__(self, config: Dict):
        self.config = config
        self.connected = False
        
    def connect(self):
        self.connected = True
        
    def send_order(self, order_req: OrderRequest) -> OrderResponse:
        order_id = str(uuid.uuid4())[:8]
        return OrderResponse(
            order_id=order_id,
            status=OrderStatus.FILLED,
            msg="Backtest order filled"
        )
    
    def query_position(self) -> List[Dict]:
        return []